package com.zwps.biz.domain.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zwps.biz.dal.db.dao.TInstitutionDAO;
import com.zwps.biz.dal.db.dao.VillageLandInfoDAO;
import com.zwps.biz.dal.db.object.TInstitutionDO;
import com.zwps.biz.domain.service.TInstitutionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 */
@DS("lhk")
@Service
public class TInstitutionServiceImpl extends ServiceImpl<TInstitutionDAO, TInstitutionDO>
        implements TInstitutionService {

    @Autowired
    private TInstitutionDAO tInstitutionDAO;

    @Autowired
    private VillageLandInfoDAO villageLandInfoDAO;

    @Override
    public TInstitutionDO getoperatEntity() {
        TInstitutionDO tInstitutionDO = tInstitutionDAO.getoperatEntity();
        //查询证书文件
        tInstitutionDO.setFiles(villageLandInfoDAO.getFileByFileName("注册登记"));
        return tInstitutionDO;
    }
}




